﻿using vroom.wcf.common;
using vroom.wcf.service.cache.Updaters;
using vroom.wcf.service.common;
using Microsoft.Practices.Unity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace vroom.wcf.service.Service
{
	public class UnityBootstrap
	{
		public static void RegisterTypes(IUnityContainer container)
        {
			container.RegisterType<ICacheUpdater, PosCacheUpdater>(Consts.Position, new ContainerControlledLifetimeManager());
			container.RegisterType<ICacheUpdater, BucketCacheUpdater>(Consts.Bucket, new ContainerControlledLifetimeManager());
        }
    }	
}